package com.keep.result;

public enum ResultEnum {

    SUCCESS_ENUM("1","成功"),
    FAIL_ENUM("2","失败"),
    USERNAME_PASSWORD_FAIL_ENUM("3","用户名或密码错误"),
    USERNAME_PASSWORD_SUCCESS_ENUM("4","登录成功"),
    TOKEN_FAIL_ENUM("5","TOKEN无效"),
    PWD_OLD_ENUM("6","与原密码不一致"),
    PWD_NEW_ENUM("7","两次密码不一致"),
    USER_FAIL_ENUM("8","商家状态异常,请联系运营商"),
    CODE_FAIL_ENUM("9","验证码错误,请重新输入"),
    SECKILL_REQUEST_ERROR("10","秒杀请求失败"),
    USER_ERROR_LOGIN("11","请先登录"),
    NOTFOUND_GOODS("12","商品不存在"),
    SECKILL_GOODS_TIMEOUT("13","秒杀已结束"),
    NOT_GOODS("14","库存不足"),
    SECKILL_SUBMIT_SUCCESS("15","秒杀成功"),
    CART_SUCCESS_ENUM("O","加入购物车成功");

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    ResultEnum() {
    }
}
